<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div class="modal fade" id="huifumodal" tabindex="-1" role="dialog" >

							<div class="modal-dialog">
							<!-- Modal content-->
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal">&times;</button>
										
										<div class="login-form">
											<form name="reply" method="post">
												<input type="text" name="rebody" placeholder="内容...." required="">
												
												<input type="hidden" name="name" value="${dbuser.name }"> 
												<input type="hidden" name="reimg" value="${dbuser.spare }"> 
												<input type="hidden" id="remeId"  value=""> 
												<input type="hidden" id="removieId" value="" > 
												</form>
												<div class="tp">
												<input type="submit" onclick="huifu()" value="发送" />
													
												</div>
												
											
											<script type="text/javascript">
											function xianshimodal(remeId,removieId){
												$('#huifumodal').modal();
												$("#remeId").val(remeId);
												$("#removieId").val(removieId);
											}
										
											function huifu(){
												var remeId=reply.remeId.value;
												var removieId=reply.removieId.value;
												var rebody=reply.rebody.value;
												
												var name=reply.name.value;
												var reimg=reply.reimg.value;
												
												
											       	var date = new Date();
											        var seperator1 = "-";
											        var year = date.getFullYear();
											        var month = date.getMonth() + 1;
											        var strDate = date.getDate();
											        var hour=date.getHours();
											        var kong=" ";
											        var fenhao=":";
											        var minutes=date.getMinutes();
											        if (month >= 1 && month <= 9) {
											            month = "0" + month;
											        }
											        if (strDate >= 0 && strDate <= 9) {
											            strDate = "0" + strDate;
											        }
											        var retime = year + seperator1 + month + seperator1 + strDate +kong+hour+fenhao+minutes;
											       
												
												$.post("/huifuxinxi",{rebody:rebody,removieId:removieId,name:name,reimg:reimg,remeId:remeId,retime:retime},
														function(result){
															
														
																$('#huifumodal').modal('hide');
																window.location.reload();
															
															
														});
												}
											</script>
										</div>
									</div>
								</div>
							</div>
						</div>